package com.yuer;

import com.yuer.image.ImagePipeline;
import com.yuer.image.ImageProcessHandler;
import us.codecraft.webmagic.pipeline.Pipeline;

public class App {

    public static void main(String[] args) {

        String fetchHome = "https://www.qidian.com/";
        String rootPath = "/Users/if/Desktop/网站全部资料/qidian-image/image/";

        ProcessHandler processHandler = new ImageProcessHandler();
        Pipeline pipeline = new ImagePipeline(rootPath);

        ProcessorService.run(fetchHome, processHandler, pipeline);

    }

}
